<style lang="scss" scoped>
div{
  border: 1px solid #000;
}
</style>

<template>
  <div class=" bg-indigo-300 h-40 w-40 rounded-lg "
    @click="doTest"
  >
  </div>
</template>

<script lang="ts" setup >
import { getTest } from 'api'

const doTest = async () => {
  const e = await getTest(Math.round(Math.random()*9))
  console.log(e)
}

</script>